All Questions
Tagged with clean-architectureandroid
8 questions
1vote
1answer
770views
Is it normal to use multiple repositories in one viewmodel?
Does it violating any conventions? Is it acceptable by MVVM? I have to separate the local data repository and online repository, but for login I have to use multiple repositories for getting response ...
2votes
1answer
1kviews
How to integrate Androidx Paging-3 in Clean Architecture?
This blog on "Clean Architecture" describes how to build a modular Android application along with using Clean Architecture. In that example project, the author places the business logic in a ...
0votes
0answers
570views
In what layer should API be called in Clean Architecture - in Repository or in Use Case?
I am trying to implement Clean Architecture on my Android App with standard MVVM components. Almost every example I have found deals with simple business logic, i.e. simple CRUD operations over data ...
1vote
1answer
647views
Clean Architecture: are repositories always needed?
I'm trying to apply Clean Architecture to a mobile Android App, but I still have some doubts about how to manage API calls. Currently, the classes are structured like this: View -> ViewModel -> ...
-1votes
1answer
980views
Android project, clean architecture and modular approach
I have this project with MVVM and clean architecture well implemented but I've decided to split it into modules. Right now I have: apimodule apimodule: with the retrofit dependencies app: with the ...
2votes
1answer
506views
Is it good approach to create new viewModel class for every new Ui(Fragment/Activity)?
I am working on a project in which I am following clean Architecture from Google ... and for making code testable I am following an approach in which,I am creating a new ViewModel Class ViewModel ...
12votes
3answers
17kviews
Should business logic be in the app or in the backend?
I've recently started applying the Clean Architecture while developing an Android application. And so I divided my application in 4 different parts. Data layer Contains the implementation of ...
36votes
4answers
22kviews
Clean Architecture - Too many Use Case Classes
I'm going into Clean Architecture and lift my Android level from MVC to MVP, introducing DI with Dagger 2, Reactivity with RxJava 2, and of course Java 8. In MVP clean architecture there is a layer ...